package gis.uzd_1;

import java.awt.Dimension;
import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JSlider;
import javax.swing.SwingConstants;

/**
 * Zoom bar panel.
 * 
 * @version 0.1
 * @date 2010-04-25
 * @author Edmundas Matusevicius
 */
public class ZoomBar extends JPanel {
    public ZoomBar() {
        setPreferredSize(new Dimension(23, 0));
        
        JSlider slider = new JSlider(SwingConstants.VERTICAL, 0, 10, 10);
        
        JButton zoomExtent = new JButton("=");
        JButton zoomIn = new JButton("+");
        JButton zoomOut = new JButton("-");
        
        zoomExtent.setPreferredSize(new Dimension(21, 21));
        zoomIn.setPreferredSize(new Dimension(21, 21));
        zoomOut.setPreferredSize(new Dimension(21, 21));
        
        zoomExtent.setMargin(new Insets(0, 0, 0, 0));
        zoomIn.setMargin(new Insets(0, 0, 0, 0));
        zoomOut.setMargin(new Insets(0, 0, 0, 0));
        
        add(zoomExtent);
        add(zoomIn);
        add(slider);
        add(zoomOut);
    }
}
